-- GENERATED SPELL FOR [Coilfang Technician] --


function spell0_17940(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(16005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17940', 9000, 1)
end

function spell1_17940(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(39376,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17940', 9000, 1)
end

function Sorts_17940(pUnit, Event)
local choix_sorts_17940 = math.random(0, 1)
if choix_sorts_17940 == 0 then
pUnit:RegisterEvent('spell0_17940', 1, 1)
end
if choix_sorts_17940 == 1 then
pUnit:RegisterEvent('spell1_17940', 1, 1)
end
end

function mob17940_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17940', math.random(1500, 3000), 1)
end

function mob17940_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17940_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17940_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17940, 1, 'mob17940_Action')
RegisterUnitEvent(17940, 2, 'mob17940_Leave')
RegisterUnitEvent(17940, 3, 'mob17940_Kill')
RegisterUnitEvent(17940, 4, 'mob17940_Die')
